﻿using cstdx.database;
using DuckDB.NET.Data;
using System.ComponentModel.DataAnnotations.Schema;

namespace cstdx.app;

internal class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Hello, World!");
        using var db = new CommonDbContext("DataSource=hello.db");

        var aas = db.Set<AA>().ToList();

        foreach(var item in aas)
        {

        }

	}
}


[Table("AA")]
public class AA
{
    public int Id { get; set; }
    public int Age { get; set; }
    public string Name { get; set; }
}